import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:robot3/services.dart';

import '../widgets.dart';

void main() {
  runApp(const MaterialApp(home: _SecondScreen()));
}

class _SecondScreen extends StatelessWidget {
  const _SecondScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Flutter 每日进阶')),
      body: const MyCustomForm(),
    );
  }
}

class MyCustomForm extends StatelessWidget {
  const MyCustomForm({super.key});

  @override
  Widget build(BuildContext context) {
    final TextEditingController nameController2 = TextEditingController();
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
          child:
          SizedBox(width: 374/ratio,
              height: 44/ratio,
              child:
              RobotEditText(controller:nameController2,onTextChanged: (text){})
          ),
        ),
      ],
    );
  }
}
